package com.github.wj.security.server.domain;

import com.github.wj.security.server.entity.TSysUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface UserSysServiceRepository extends JpaRepository<TSysUser,Long> {

    @Query("select t from TSysUser t where t.userid=:userId")
    List<TSysUser> findByUserid(@Param("userId") String userId);
}
